package sessionBeans;

import java.util.List;

import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import entityBeans.RequestNotification;

/**
 *
 * @author user
 */
@Stateless
public class RequestNotificationFacade extends AbstractFacade<RequestNotification> implements RequestNotificationFacadeLocal {
    @PersistenceContext(unitName = "sw2")
    private EntityManager em;

    @Override
    protected EntityManager getEntityManager() {
        return em;
    }
/*
 *
 * this method will take data from webpage and write it into database
 */
      public void sendNotification(RequestNotification requestNotification){
      
      }
/*
 *
 * this method will check the type of notification and write it into friendship or ability table
 */
  public void rejectAcceptNotification(RequestNotification requestNotification){
  
  }

    public RequestNotificationFacade() {
        super(RequestNotification.class);
    }

	@Override
	public List<RequestNotification> findAll() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<RequestNotification> findRange(int[] range) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int count() {
		// TODO Auto-generated method stub
		return 0;
	}
    
}